package org.dubnation.user.mapper;

import org.dubnation.org.domain.Employee;
import org.dubnation.user.domain.LoginInfo;
import org.dubnation.base.mapper.BaseMapper;
import org.dubnation.user.domain.User;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2023-11-09
 */
public interface LoginInfoMapper extends BaseMapper<LoginInfo> {

    LoginInfo queryByPhone(String phone);

    LoginInfo queryByUsernameOrPhoneOrEmail(String phone);

    Employee queryEmployee(Long id);

    User queryUser(Long id);

    LoginInfo queryByUserId(Long userId);
}
